def sep():
    print('-' * 32)


d = {'贾兴科': 'China',
          'Tom': 'England',
          'Bob': 'Nigeria',
          '王思聪': 'China',
          'Nagata': 'Japan',
          'Suzuki': 'Japan',
          'Hou': 'Taiwan'
     }
print(type(d))
print(d)
print(d['王思聪'])
print(d.get('王思聪'))
sep()
# print(d['王思聪x'])  # KeyError: '王思聪x'
print(d.get('王思聪x', 'Tw'))

